// 权限问题后期增加
import { get, post } from '/@/utils/http/axios'
// import { UserState } from '/@/store/modules/user/types'

enum URL {
  courseList = '/api/student/course/list/', // 课程列表
  courseDetail =  '/api/student/course/detail/', // 课程详情
  courseTotalChapters = '/api/course/totalChapters/', // 课程全部章节
}
/// 课程列表
const courseList = async (data:any) => post<any>({ url: URL.courseList, data })
const courseDetail = async (data:any) => post<any>({ url: URL.courseDetail, data })
const courseTotalChapters = async (data:any) => post<any>({ url: URL.courseTotalChapters, data })



export { courseList, courseDetail, courseTotalChapters }